package com.leiyuee.mybatis.service;

import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface TKMapperService <T,ID >{
    Mapper<T> getMapper();

    int insert(T record);
    int insertSelective(T record);

    int updateByPK(T record);
    int updateByPKSelective(T record);

    int deletByPK(ID id);

    List<T> select(T record);
    List<T> selectAll();
    T selectOne(T record);
    T selectByPK(ID id);
    List<T> selectByExample(Example example);

}
